class people:
    name=''
    age=0
    #定义私有属性,私有属性在类外部无法直接进行访问
    __weight=0
    def __init__(self,n,a,w):
        self.name=n
        self.age=a
        self.__weight=w
    def speak(self):
        print("%s说,我今年%d岁"%(self.name,self.age))
p=people("wuhuan",28,160)
p.speak()
    